<!--
 * @Author: Soulmate
 * @Date: 2023-10-17 09:06:27
 * @LastEditTime: 2023-10-17 11:34:48
 * @LastEditors: Soulmate
 * @Description: 
 * @FilePath: \ruoyi-ui-vue3\src\components\Map\Tools\index.vue
 * 版权声明
-->
<template>
    <div class="toolList">
        <div class="toolRow">
            <el-icon @click="event('amplify')"><Plus /></el-icon>
        </div>
        <div class="toolRow">
            <el-icon @click="event('reduce')"><Minus /></el-icon>
        </div>
        <div class="toolRow">
            <el-icon @click="event('reload')"><Aim /></el-icon>
        </div>
        <div class="toolRow">
            <el-icon @click="event('addMarker')"><AddLocation /></el-icon>
        </div>
        <div class="toolRow">
            <svg-icon @click="event('addPolygon')" class="svg-icon" class-name="polygon" icon-class="polygon" />
        </div>
    </div>
</template>

<script lang="ts" setup>
import { ref, computed, onMounted } from 'vue';
const emit = defineEmits(['handleMapEvent']);
onMounted(() => {});
const event = (type) => {
    emit('handleMapEvent', type);
};
</script>
<style scoped lang="scss">
@import '@/assets/styles/variables.module.scss';

.toolList {
    width: 100%;

    .toolRow {
        width: 30px;
        height: 30px;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 18px;
        color: #999;
        background: #fff;
        cursor: pointer;
        border: 1px solid #eee;
        border-top: 0px;
        &:first-child {
            border-top: 1px;
        }
        &:hover {
            background: #2196f3;
            color: #fff;
        }
    }
}
</style>
